<include file="public:header" />
<!--问卷调查管理-->
<div class="pad_lr_10">

  <form name="searchform" method="get" >
    <table width="100%" cellspacing="0" class="search_form">
        <tbody>
            <tr>
                <td>
                <div class="explain_col">
                    <input type="hidden" name="g" value="admin" />
                    <input type="hidden" name="m" value="compete" />
                    <input type="hidden" name="a" value="index" />
                    <input type="hidden" name="menuid" value="{$menuid}" />
                    {:L('publish_time')}：
                    <input type="text" name="time_start" id="time_start" class="date" size="12" value="{$search.time_start}">
                    -
                    <input type="text" name="time_end" id="time_end" class="date" size="12" value="{$search.time_end}">                    
					&nbsp;&nbsp;关键字 :
					<input type="text" name="keyWord" class="input-text" size="12" value="{$search.keyWord}" /> 
                    <input type="submit" name="search" class="btn" value="搜索" />
					
                </div>
                </td>
            </tr>
        </tbody>
    </table>
    </form>


    <div class="J_tablelist table_list" data-acturi="{:U('compete/ajax_edit')}">
        <table width="100%" cellspacing="0">
            <thead>
            <tr>
                <th width="40"><input type="checkbox" name="checkall" class="J_checkall"></th>
                <th width="40">ID</th>
                <th>机型</th>
                <th>竞品价格</th>
                <th>代理商名称</th>
                <th>代理商政策</th>
                <th>门店政策</th>
                <th>移动政策</th>
                <th>创建时间</th>
                <th>创建者用户</th>
      		
                <th width=200>{:L('operations_manage')}</th>
            </tr>
            </thead>
    	    <tbody>
            <volist name="list" id="val" >
            <tr>
                <td align="center"><input type="checkbox" class="J_checkitem" value="{$val.id}"></td>
                <td align="center">{$val.id}</td>
                <td align="center">
                   {$val['model']['name']}
                </td>
                <td align="center">{$val.price}</td>
                <td align="center">{$val.agents}</td>
                <td align="center">{$val.agentsPolicy}</td>
                <td align="center">{$val.storePolicy}</td>
                <td align="center">{$val.cmccPolicy}</td>
                <td align="center">{$val.createTime|date='Y-m-d H:i:s',###}</td>
      
                 <td align="center">{$val['user']['realName']}</td>
                <td align="center">
                    <!--a href="javascript:;" class="J_showdialog" data-uri="{:U('compete/oppt',array('id'=>$val['id'],'opttype'=>'edit'))}" data-title="" data-id="edit" data-width="500" data-height="260">编辑</a--> 

                    <a href="javascript:;" class="J_confirmurl" data-uri="{:U('compete/delete', array('id'=>$val['id']))}" data-msg="{:sprintf(L('confirm_delete_one'),$val['userName'])}">{:L('delete')}</a>
                </td>
            </tr>
            </volist>
    	   </tbody>
        </table>
    </div>
    <div class="btn_wrap_fixed">
		<label class="select_all mr10"><input type="checkbox" name="checkall" class="J_checkall">{:L('select_all')}/{:L('cancel')}</label>
    	<input type="button" class="btn" data-tdtype="batch_action" data-acttype="ajax" data-uri="{:U('compete/delete')}" data-name="id" data-msg="{:L('confirm_delete')}" value="{:L('delete')}" />
		<div id="pages">{$page}</div>
    </div>
</div>
<include file="public:footer" />
<script>
$('.J_cate_select').cate_select({top_option:lang.all});
</script>

<link rel="stylesheet" type="text/css" href="__STATIC__/js/calendar/calendar-blue.css"/>
<script src="__STATIC__/js/calendar/calendar.js"></script>
<script>
$('.J_cate_select').cate_select({top_option:lang.all});
Calendar.setup({
    inputField : "time_start",
    ifFormat   : "%Y-%m-%d",
    showsTime  : false,
    timeFormat : "24"
});
Calendar.setup({
    inputField : "time_end",
    ifFormat   : "%Y-%m-%d",
    showsTime  : false,
    timeFormat : "24"
});
</script>
</body>
</html>